<template>
  <div>
    <el-form ref="addForm" disabled :model="formData" label-width="120px">
      <el-form-item label="公司名称" prop="name">
        <el-input v-model="formData.name" placeholder="1-50个字符" />
      </el-form-item>
      <el-form-item label="公司地址" prop="description">
        <el-input v-model="formData.companyAddress" placeholder="1-50个字符" />
      </el-form-item>
      <el-form-item label="公司邮箱" prop="description">
        <el-input v-model="formData.mailbox" placeholder="1-50个字符" />
      </el-form-item>
      <el-form-item label="备注">
        <el-input v-model="formData.remarks" type="textarea" style="width:350px;height:150px" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { Company } from '@/api/setting'
import { mapGetters } from 'vuex'
export default {
  data() {
    return {
      formData: {}
    }
  },
  computed: {
    ...mapGetters(['companyId'])
  },
  created() {
    this.Company()
  },
  methods: {
    async Company() {
      const res = await Company(this.companyId)
      // console.log(res)
      this.formData = res
    }
  }

}
</script>

<style>
.el-input{
  width: 350px;
}
</style>
